package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName t_cq
 */
@TableName(value ="t_cq")
@Data
public class TCq implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer cqId;

    /**
     * 
     */
    private Integer myPrice;

    /**
     * 
     */
    private BigDecimal yjPrice;

    /**
     * 
     */
    private Integer czPrice;

    /**
     * 
     */
    private Integer czCard;

    /**
     * 
     */
    private BigDecimal txPrice;

    /**
     * 
     */
    private String txCard;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TCq other = (TCq) that;
        return (this.getCqId() == null ? other.getCqId() == null : this.getCqId().equals(other.getCqId()))
            && (this.getMyPrice() == null ? other.getMyPrice() == null : this.getMyPrice().equals(other.getMyPrice()))
            && (this.getYjPrice() == null ? other.getYjPrice() == null : this.getYjPrice().equals(other.getYjPrice()))
            && (this.getCzPrice() == null ? other.getCzPrice() == null : this.getCzPrice().equals(other.getCzPrice()))
            && (this.getCzCard() == null ? other.getCzCard() == null : this.getCzCard().equals(other.getCzCard()))
            && (this.getTxPrice() == null ? other.getTxPrice() == null : this.getTxPrice().equals(other.getTxPrice()))
            && (this.getTxCard() == null ? other.getTxCard() == null : this.getTxCard().equals(other.getTxCard()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCqId() == null) ? 0 : getCqId().hashCode());
        result = prime * result + ((getMyPrice() == null) ? 0 : getMyPrice().hashCode());
        result = prime * result + ((getYjPrice() == null) ? 0 : getYjPrice().hashCode());
        result = prime * result + ((getCzPrice() == null) ? 0 : getCzPrice().hashCode());
        result = prime * result + ((getCzCard() == null) ? 0 : getCzCard().hashCode());
        result = prime * result + ((getTxPrice() == null) ? 0 : getTxPrice().hashCode());
        result = prime * result + ((getTxCard() == null) ? 0 : getTxCard().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cqId=").append(cqId);
        sb.append(", myPrice=").append(myPrice);
        sb.append(", yjPrice=").append(yjPrice);
        sb.append(", czPrice=").append(czPrice);
        sb.append(", czCard=").append(czCard);
        sb.append(", txPrice=").append(txPrice);
        sb.append(", txCard=").append(txCard);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}